import React, { Component } from 'react'
import './App.css'
import axios from 'axios'
export default class App extends Component {
	getData = () => {
		axios.get('').then(
			response => {
				console.log('成功了')
			},
			error => {
				console.log('成功了：' + error)
			}
		)
	}
	
	render() {
		return (
			<div style={{width: '380px', padding: '20px'}}>
				<button onClick={this.getData}>点我获取数据</button>
			</div>
		)
	}
}